package com.heima.model.channel.dtos;

import lombok.Data;

@Data
public class ChannelDto {
    private String name;
    private long page;
    private long size;

    public void auditParams() {
        if (page <= 0) {
            this.page = 1;
        }
        if (size <= 0 || size > 20) {
            this.size = 10;
        }
    }
}
